import java.util.Scanner;

public class Car {
    String brand;
    double price;
    double weight;
    double oilVolume = 0;

    public void showCar() {
        System.out.println("品牌：" + this.brand + "\t价格：" + this.price + "万元\t"
                + "重量：" + this.weight + "吨\t" + "\t油量" + this.oilVolume + "升");


    }
    public void run(double oilVolume){

       while (oilVolume>=0){
           System.out.println("汽车正在行驶，当前油量"+oilVolume);
           if (oilVolume<=0){
               System.out.println("汽车没有油了");
           }
           oilVolume--;
       }

}
    public  void brake(){
        System.out.println("刹车");
    }
    public  void whistle(){
        System.out.println("鸣笛");
    }


    public  void speeUp(){
        ;
        System.out.println("加速");
    }
}